#pragma once

class shader {
protected:
	int _program;
	
public:
	bool
	linkprogram(const char *vertexfile, const GLchar *fragmentfile) {
		_program = shader_util::linkprogram(vertexfile, fragmentfile);
		return _program != 0;
	}
	
	void 
	useprogram() {
		glUseProgram(_program);
	}

	void
	deleteprogram() {
		glDeleteProgram(_program);
	}
};